package cn.csxw.openchina.dagger2.presenter;

import android.util.Log;

import javax.inject.Inject;

import cn.csxw.openchina.entity.bean.OsChinaBean;
import cn.csxw.openchina.ui.activity.SplashActivity;
import retrofit2.Call;

/**
 * Created by hp on 2017/1/18.
 */

public class SplashActivityPresenter extends BasePresenter {
    SplashActivity mSplashActivity;

    @Inject
    public SplashActivityPresenter(SplashActivity splashActivity) {
        mSplashActivity = splashActivity;
    }

    @Override
    protected void processData(OsChinaBean data) {
        if (data != null) {

            Log.d("wgc", "sdsds");
        }
    }

    @Override
    public void callNetWork(Object... params) {
        Call<OsChinaBean> login = mOsChinaServer.login((String) params[0], (String) params[1], (int) params[2]);
        login.enqueue(mCallback);

    }
}
